const {ccclass, property} = cc._decorator;
const {PageView } = cc
@ccclass
export default class ShopComponent extends cc.Component {

    @property(cc.PageView)
    pagView: cc.PageView;


    onLoad() {
        // init logic
        this.pagView.enabled = false
        
    }

    toPage(event,params){
        
        this.pagView.scrollToPage(params-1,0)
        
    }

    closeCurrent(){
        
        this.node.active = false
        
    }
}
